package com.example.simplefactory;

import com.example.simplefactory.factoryjd.SayHelloFactory;

/**
 * @version 1.0.0
 * @className: Test
 * @description:
 * @author: zhangjunfa
 * @date: 2022/6/9 14:26
 */
public class Test {
    public static void main(String[] args) {
        IMessage wechat = SayHelloFactory.createSendMessage("wechat");
        wechat.sayHello("tom");
        IMessage qq = SayHelloFactory.createSendMessage("qq");
        qq.sayHello("jim");
        IMessage dingding = SayHelloFactory.createSendMessage("dingding");
        dingding.sayHello("jackson");

    }
}
